<template>
<!--  <router-view v-slot="{ Component }">
    <component :is="Component" />
  </router-view>-->
  <router-view></router-view>
</template>

<style lang="scss">
  @import '@/styles/index.scss';
</style>

<script setup lang="ts">
import { onMounted } from "vue";
import tool from '@/utils/tool.js'
import api from "@/api/index.js"

const getAdminMenu = async () => {
  const token = tool.data.getToken()
  if (!token) {
    return
  }
  let jieguo = await tool.adminGetMyMenu(api)
  if (!jieguo[0]) {
    return
  }
}

onMounted(() => {
  getAdminMenu()
})
</script>
